package com.stragegy;

public class startStrategy {
	public startStrategy(){
		Animal burek = new Dog();
		Animal ptaszek = new Bird();
		
		System.out.println("Pies: " + burek.tryToFly());
		System.out.println("Ptak: " + ptaszek.tryToFly());
		
		burek.setFlyingAbility(new ItFlys());
		
		System.out.println("Pies nagle: " + burek.tryToFly());
	}
}
